import request from '@/utils/request';

export async function getInspectItemByPage (params: any) {
    return request('/api/device/getInspectItemByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectItem (params: any) {
    return request('/api/device/addInspectItem', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectItem (params: any) {
    return request('/api/device/updateInspectItem', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectItem (params: any) {
    return request('/api/device/delInspectItem', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectItem(params: any) {
    return request('/api/device/exportInspectItem', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectItemByPage, addInspectItem, updateInspectItem, delInspectItem, exportInspectItem }
